<?php
$conn = new pdo('mysql:host=127.0.0.1;port=3306;dbname=zgdb;charset=utf8', 'root', '', [19 => 2, 1002 => 'set names utf8']);

//删除数据
//建立数据库
//echo $conn->exec('create database if not exists dbt default charset utf8');
//建立表
//echo $conn->exec('create table dbt.t1(id int)');
// $conn->exec('drop table dbt.t1');
// $conn->exec('drop database if exists dbt');

//echo $conn->exec('delete from t_user where id = 111');

// $pst = $conn->prepare('delete from t_user where id = ?');
// $pst->execute([113]);
//
$pst = $conn->prepare('delete from t_user where id in (?,?,?)');
$pst->execute([109, 110, 115]);